-- GENERATED SPELL FOR [Drakkari Golem] --


function spell0_29832(pUnit, Event) --@Body of Stone,Self--
pUnit:FullCastSpellOnTarget(55633,pUnit)
pUnit:RegisterEvent('Sorts_29832', 14000, 1)
end

function spell1_29832(pUnit, Event) --@Shockwave,n/a--
pUnit:FullCastSpellOnTarget(55636,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29832', 2000, 1)
end

function spell2_29832(pUnit, Event) --@Shockwave,n/a--
pUnit:FullCastSpellOnTarget(58977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29832', 2000, 1)
end

function spell3_29832(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(55635,pUnit)
pUnit:RegisterEvent('Sorts_29832', 10332, 1)
end

function spell4_29832(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(58975,pUnit)
pUnit:RegisterEvent('Sorts_29832', 10330, 1)
end

function Sorts_29832(pUnit, Event)
local choix_sorts_29832 = math.random(0, 4)
if choix_sorts_29832 == 0 then
pUnit:RegisterEvent('spell0_29832', 1, 1)
end
if choix_sorts_29832 == 1 then
pUnit:RegisterEvent('spell1_29832', 1, 1)
end
if choix_sorts_29832 == 2 then
pUnit:RegisterEvent('spell2_29832', 1, 1)
end
if choix_sorts_29832 == 3 then
pUnit:RegisterEvent('spell3_29832', 1, 1)
end
if choix_sorts_29832 == 4 then
pUnit:RegisterEvent('spell4_29832', 1, 1)
end
end

function mob29832_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29832', math.random(1500, 3000), 1)
end

function mob29832_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29832_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29832_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29832, 1, 'mob29832_Action')
RegisterUnitEvent(29832, 2, 'mob29832_Leave')
RegisterUnitEvent(29832, 3, 'mob29832_Kill')
RegisterUnitEvent(29832, 4, 'mob29832_Die')
